package ling.archives.domain;

import com.easy.query.core.proxy.ProxyEntityAvailable;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

import ling.archives.domain.proxy.BorrowFileProxy;
import lombok.Data;
import com.easy.query.core.annotation.*;
import ling.archives.common.domain.entity.*;

/**
 * 借阅;
 * @author : He-LiangLiang@Outlook.com
 * @date : 2025-4-11
 */
@ApiModel(value = "借阅",description = "")
@Table("ar_borrow_file")
@EntityProxy
@Data
public class BorrowFile extends CU2Entity.LongId implements Serializable,Cloneable, ProxyEntityAvailable<BorrowFile , BorrowFileProxy> {
    /** id */
    /*
    @Column(primaryKey = true)
    @ApiModelProperty(value = "id",notes = "")
    private Long id ;
    */

    /** 借阅人id */
    @ApiModelProperty(value = "借阅人id",notes = "")
    private Long borrowId ;


    /**  */
    @ApiModelProperty(value = "",notes = "")
    @EasyWhereCondition
    private String borrowName ;


    /**  */
    @EasyWhereCondition(type = EasyWhereCondition.Condition.RANGE_LEFT_CLOSED)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "",notes = "")
    private Date beginTime ;


    /**  */
    @EasyWhereCondition(type = EasyWhereCondition.Condition.RANGE_RIGHT_CLOSED)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "",notes = "")
    private Date endTime ;


    /** 档案簿，借阅文件id列表 */
    @ApiModelProperty(value = "档案簿，借阅文件id列表",notes = "")
    private String filesId ;


    /** 借阅文件提名列表 */
    @EasyWhereCondition
    @ApiModelProperty(value = "",notes = "")
    private String filesName ;


    /** 是否通过审批:0草稿，1通过,2驳回，3已提交，5关闭借阅 */
    @EasyWhereCondition(type = EasyWhereCondition.Condition.EQUAL)
    @ApiModelProperty(value = "是否通过审批:0草稿，1通过,2驳回，3已提交，5关闭借阅",notes = "")
    private String status ;


    /** 备注 */
    @ApiModelProperty(value = "备注",notes = "")
    private String descr ;


}